package com.itkk.banking;

public class Acount {
    private double balance;

    public Acount(double bal) {
        balance = bal;
    }

    public double getBalance() {
        return balance;
    }

    public boolean deposit(double amount) {
        balance += amount;
        return true;
    }

    public boolean withdraw(double amount) {
        boolean result = true;
        if (amount > balance) {
            return false;
        } else {
            balance -= amount;
            return true;
        }
    }
}
